Remove netstandard2.0 target framework from core packages#3091
Merged
rajkumar-rangaraj merged 7 commits intomainfrom Jan 28, 2026
Merged
Remove netstandard2.0 target framework from core packages#3091rajkumar-rangaraj merged 7 commits intomainfrom
rajkumar-rangaraj merged 7 commits intomainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR removes the netstandard2.0 target framework from three Application Insights packages: Microsoft.ApplicationInsights, Microsoft.ApplicationInsights.AspNetCore, and Microsoft.ApplicationInsights.WorkerService. This simplifies the build targets and indicates these packages will no longer support .NET Standard 2.0, requiring users to target .NET 8.0 or higher (or .NET Framework 4.6.2 for the base package).
Changes:
- Removed
netstandard2.0from target frameworks in three project files - Cleaned up conditional compilation directives and build configurations that referenced
netstandard2.0 - Updated CHANGELOG.md to document the removal
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| NETCORE/src/Microsoft.ApplicationInsights.WorkerService/Microsoft.ApplicationInsights.WorkerService.csproj | Removed netstandard2.0 from TargetFrameworks, now targets only net10.0, net9.0, and net8.0 |
| NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Microsoft.ApplicationInsights.AspNetCore.csproj | Removed netstandard2.0 from TargetFrameworks and removed the conditional TargetFrameworks for non-Windows OS, also removed the Release configuration PropertyGroup specific to netstandard2.0 |
| BASE/src/Microsoft.ApplicationInsights/Microsoft.ApplicationInsights.csproj | Removed netstandard2.0 from both Windows and non-Windows TargetFrameworks, removed commented-out PackageReference, and updated ItemGroup condition to exclude only net8.0/9.0/10.0 |
| CHANGELOG.md | Added entry documenting the removal of netstandard2.0 target framework from the three packages |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
harsimar
approved these changes
Jan 28, 2026
This was referenced Feb 1, 2026
Open
Closed
Open
This was referenced Feb 10, 2026
Closed
Closed
Merged
Closed
Merged
Closed
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes netstandard2.0 from the following packages:
These packages now target net8.0, net9.0, net10.0 (and net462 for the core SDK).